<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var week = 4;
        switch (week) {
            case 1:
                console.log("周一   =>      钓鱼");
                break;
            default:
                console.log("周末   =>      睡觉!");
            // break;//在switch当中,终止代码往后走
            case 2:
                console.log("周二   =>      钓凯子");
                break;
            case 3:
                console.log("周三   =>      钓妹子");
                break;
            case 5:
                console.log("周五   =>      敲代码");
                break;
            case 4:
                console.log("周四   =>      看代码");
                break;
        }
    </script>
</body>

</html>